<?php
/**
 * Created by PhpStorm.
 * User: tandunzhao
 * Date: 2018/5/30
 * Time: 下午1:42
 */

namespace App\Modules\Shop\Models;


use Illuminate\Database\Eloquent\Model;

class ProductSpecifiction extends Model
{
    protected $table = 'product_specification';
    protected $fillable = ['id','product_id','specification','price','origin_price','cost','stock','created_at','updated_at'];

    public function product() {
        return $this->belongsTo(Products::class, 'product_id');
    }
}